package com.zg.common.core.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 公共字段定义
 * @author Zxb
 */
@Data
public class BaseEntity  implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @TableId
    private Long id;

    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer ver;

    /**
     * @TableLogic 逻辑删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean isDel;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    private String searchStr;
}
